'use strict'

module.exports = [
    {
        name: 'test'
    },
    //启用中间件，内容是中间件的名字
    {
        //计算请求耗时
        middleware: async (c, next) => {
            let startTime = Date.now()
            await next()
            let endTime = Date.now()
            console.log(endTime - startTime, 'ms')
        }
    }
]